import axios from '@/axios'


export function getImageList(id,page = 1){
    return axios.get(`/admin/image_class/${id}/image/${page}`)
}

//修改图片名称
export function updateImage(id,name){
    return axios.post(`/admin/image/${id}`,{name})
}


//删除图片
export function deleteImage(ids){
    return axios.post("/admin/image/delete_all",{ids})
}

//上传图片的后端路径
export const upLoadImageAction = import.meta.env.VITE_APP_BASE_API + "/admin/image/upload"